<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

	<link type="text/css" href="css/jquery/redmond/jquery-ui-1.8.6.custom.css"
		rel="stylesheet" />
	<link rel="stylesheet" href="css/jquery/style.css" type="text/css"></link>
	<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="js/jquery-ui-1.8.6.custom.min.js"></script>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<div id='resultado'>
				<div></div>
				<div style="width: 100%; margin-left: 15%">
					<div class="horizontal">
							<table align="center" class="rounded-corner" style="margin-top: 0px">
								<thead>
									<tr id="headers3">
										<th class="rounded-left" id='headerRodamiento3'>Rodamiento </th>
										<th>Cantidad</th>
										<th class="rounded-right">Subtotal</th>
									</tr>
								</thead>
								<tbody id="contenidoTablaBuscar">
									<c:forEach var="item" items="${factura.items}">
									 	<tr>
										 	<td><c:out value="${item.rodamiento.codigoSKF}"/></td>
											<td><c:out value="${item.cantidad}"/></td>
											<td><c:out value="${item.precio}"/> c/u</td>
										</tr>
									</c:forEach>
									<tr>
										<td colspan="2" align="center"><b>Total</b></td>
										<td id="total1">${factura.monto}</td>
									</tr>
									<tr>
										<td colspan="2" align="center"><em>Recargo intereses por cuotas%</em></td>
										<td id="descuento"><em>${factura.condPago.recargoInteres}</em></td>
									</tr>
									<tr>
										<td colspan="2" align="center"><em>descuento%</em></td>
										<td id="descuento"><em>${factura.descuento}</em></td>
									</tr>
									<tr>
										<td colspan="2" align="center"><b>Total</b><em>(con descuento)</em></td>
										<td id="totalCd" style="background-color: FFF000">${totalConDescuento}</td>
									</tr>
								</tbody>
							</table>
					</div>
					<div class="horizontal">
						<table align="center" class="rounded-corner" style="margin-top: 0px">
							<tr><td>Nro. Factura:</td><td id="nrofactura">${factura.id}</td></tr>
							<tr><td>Cliente:</td><td id="cliente">${factura.cliente.razonSocial}</td></tr>
							<tr><td>Fecha de Emisión:</td><td id="emision">${factura.fecha}</td></tr>
							<tr><td>Cantidad de cuotas</td><td>${factura.condPago.cuotas}</td></tr>
							<tr><td>Total:</td><td id="total2">${totalConDescuento}</td></tr>
						</table>
					</div>
				</div>
			</div>

</body>
</html>